package p270jp.pxv.android.model.pixiv_sketch;

import android.support.p024v4.media.C0261e;
import p056bp.ZonedDateTime;
import p325m0.MutabilityOwnership;

/* compiled from: SketchLiveGiftingEntity.kt */
/* renamed from: jp.pxv.android.model.pixiv_sketch.SketchLiveGiftingEntity */
/* loaded from: classes2.dex */
public final class SketchLiveGiftingEntity implements SketchLiveChatShowable {
    public static final int $stable = 8;
    private final int amount;
    private final ZonedDateTime createdAt;
    private final SketchLiveGiftingItem giftingItem;

    /* renamed from: id */
    private final String f19140id;
    private final SketchUser user;

    public SketchLiveGiftingEntity(String str, SketchLiveGiftingItem sketchLiveGiftingItem, int i, SketchUser sketchUser, ZonedDateTime uVar) {
        MutabilityOwnership.m3745m(str, "id");
        MutabilityOwnership.m3745m(sketchLiveGiftingItem, "giftingItem");
        MutabilityOwnership.m3745m(sketchUser, "user");
        MutabilityOwnership.m3745m(uVar, "createdAt");
        this.f19140id = str;
        this.giftingItem = sketchLiveGiftingItem;
        this.amount = i;
        this.user = sketchUser;
        this.createdAt = uVar;
    }

    public static /* synthetic */ SketchLiveGiftingEntity copy$default(SketchLiveGiftingEntity sketchLiveGiftingEntity, String str, SketchLiveGiftingItem sketchLiveGiftingItem, int i, SketchUser sketchUser, ZonedDateTime uVar, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = sketchLiveGiftingEntity.f19140id;
        }
        if ((i2 & 2) != 0) {
            sketchLiveGiftingItem = sketchLiveGiftingEntity.giftingItem;
        }
        if ((i2 & 4) != 0) {
            i = sketchLiveGiftingEntity.amount;
        }
        if ((i2 & 8) != 0) {
            sketchUser = sketchLiveGiftingEntity.user;
        }
        if ((i2 & 16) != 0) {
            uVar = sketchLiveGiftingEntity.createdAt;
        }
        return sketchLiveGiftingEntity.copy(str, sketchLiveGiftingItem, i, sketchUser, uVar);
    }

    public final String component1() {
        return this.f19140id;
    }

    public final SketchLiveGiftingItem component2() {
        return this.giftingItem;
    }

    public final int component3() {
        return this.amount;
    }

    public final SketchUser component4() {
        return this.user;
    }

    public final ZonedDateTime component5() {
        return this.createdAt;
    }

    public final SketchLiveGiftingEntity copy(String str, SketchLiveGiftingItem sketchLiveGiftingItem, int i, SketchUser sketchUser, ZonedDateTime uVar) {
        MutabilityOwnership.m3745m(str, "id");
        MutabilityOwnership.m3745m(sketchLiveGiftingItem, "giftingItem");
        MutabilityOwnership.m3745m(sketchUser, "user");
        MutabilityOwnership.m3745m(uVar, "createdAt");
        return new SketchLiveGiftingEntity(str, sketchLiveGiftingItem, i, sketchUser, uVar);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof SketchLiveGiftingEntity)) {
            return false;
        }
        SketchLiveGiftingEntity sketchLiveGiftingEntity = (SketchLiveGiftingEntity) obj;
        return MutabilityOwnership.m3749h(this.f19140id, sketchLiveGiftingEntity.f19140id) && MutabilityOwnership.m3749h(this.giftingItem, sketchLiveGiftingEntity.giftingItem) && this.amount == sketchLiveGiftingEntity.amount && MutabilityOwnership.m3749h(this.user, sketchLiveGiftingEntity.user) && MutabilityOwnership.m3749h(this.createdAt, sketchLiveGiftingEntity.createdAt);
    }

    public final int getAmount() {
        return this.amount;
    }

    public final ZonedDateTime getCreatedAt() {
        return this.createdAt;
    }

    public final SketchLiveGiftingItem getGiftingItem() {
        return this.giftingItem;
    }

    public final String getId() {
        return this.f19140id;
    }

    public final SketchUser getUser() {
        return this.user;
    }

    public int hashCode() {
        int hashCode = this.giftingItem.hashCode();
        int hashCode2 = this.user.hashCode();
        return this.createdAt.hashCode() + ((hashCode2 + ((((hashCode + (this.f19140id.hashCode() * 31)) * 31) + this.amount) * 31)) * 31);
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("SketchLiveGiftingEntity(id=");
        c.append(this.f19140id);
        c.append(", giftingItem=");
        c.append(this.giftingItem);
        c.append(", amount=");
        c.append(this.amount);
        c.append(", user=");
        c.append(this.user);
        c.append(", createdAt=");
        c.append(this.createdAt);
        c.append(')');
        return c.toString();
    }
}
